﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ITM495.OOExamples.Core.BeeHive
{
    public abstract class Bee
    {
        
        protected double Weight{get;set;}

        public virtual int ShiftsLeft { get { return 0; } }


        protected Bee(double weight)
        {
            Weight = weight;
        }

        public virtual double GetHoneyConsumption()
        {
            double consumption;

            if(ShiftsLeft == 0)
            {
                consumption = 7.5;
            }
            else
            {
                consumption = 9 + ShiftsLeft;
            }

            if(Weight > 150)
            {
                consumption *= 1.35;
            }

            return consumption;
        }

    }
}